package com.test.designPattern.ch21;

/**
 * @ClassName StopState
 * @Description TODO
 * @Author 维康
 * @Date 2018/6/13 10:56
 * @Version 1.0
 **/
public class StopState implements State {

    @Override
    public void doAction(Context context) {
        System.out.println("Player is in stop state");
        context.setState(this);
    }

    @Override
    public String toString(){
        return "Stop State";
    }
}
